﻿using System;
using System.IO;

namespace tuimg
{
    using tuimg.helpers;
    using tuimg.structs;

    public class TuimgJpeg
    {
        internal const uint jpeg_tag = 0xe0ffd8ff;
        public TuimgJpeg(string jpegpath)
        {
            using (var fr = File.Open(jpegpath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
            {
                var soi = helper.Readushort(fr);
                if (soi != (ushort)enum_jpeg_tag.SOI) throw new ArgumentException("file not jpeg.");


            }
        }
    }
}
